package edu.sctu.wulixia.month4and5.day20150527;

/**
 * Created by user05 on 2015/5/27.
 */
public class Dish {
    private String dish_name;
    private int dish_price;

    public void isDish(String dish_name, int dish_price) {
        this.dish_name = dish_name;
        this.dish_price = dish_price;
    }

    public String getDish_name() {
        return dish_name;
    }

    public int getDish_price() {
        return dish_price;
    }

    public Dish[] isSelectSpecise() {
        Dish[] dish_arrey = new Dish[3];

        Dish dish0 = new Dish();
        Dish dish1 = new Dish();
        Dish dish2 = new Dish();

        dish_arrey[0] = dish0;
        dish_arrey[1] = dish1;
        dish_arrey[2] = dish2;

        dish_arrey[0].isDish("青菜", 3);
        dish_arrey[1].isDish("辣子鸡", 5);
        dish_arrey[2].isDish("宫保鸡丁", 12);

        return dish_arrey;
    }

//    public static void main(String[] args) {
//        Dish dish = new Dish ();
//        System.out.println(dish.isSelectSpecise()[0].getDish_name()+dish.isSelectSpecise()[0].dish_price);
//    }
}
